package cn.com.megan.common.core.exception;

import lombok.Getter;

/**
 * megan
 *
 * @author megan
 * @Date 2025/5/14 16:47
 */
@Getter
public class BizException  extends RuntimeException {
    private String msg;

    private int code = 500;

    public BizException(String msg){
        super(msg);
    }

    public BizException(int code , String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
